<%@page import="bean.BoardVo"%>
<%@page import="bean.BoardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' href='./css/board.css'/>
<script src='./js/board.js'></script>
<title>게시판 보기</title>

</head>

<body>
<%request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id='vo' class='bean.BoardVo' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<%
BoardDTO dto = new BoardDTO();
dto.setVo(vo);
BoardVo v = dto.selectOne();

%>
<li>아이디:<%=v.getMid() %></li>
<li>내용:<%=v.getContent() %></li>
<li>과목:<%=v.getSubject()%></li>

<%-- <%if(v.getPhoto() != null){ %> --%>
<%-- 	<img src='./memberPhoto/<%=v.getPhoto() %>' alt="사진" width='200px' height='100px'> --%>
<%-- <%} %> --%>
<h1>게시판 보기</h1>
<input type='button' value ='게시판 작성' id='btnInput'/>
<input type='button' value ='수정' id='btnModify'/>
<input type='button' value ='삭제' id='btnDelete'/>
<input type='button' value ='목록으로' id='btnList'/>
<form name='hiddenfrm' method='post'>
	<input type='hidden' name='mid' value='<%=vo.getMid() %>'/>
	<input type='hidden' name='content' value='<%=vo.getContent()%>'/>
	<input type='hidden' name='photo' value='<%=vo.getPhoto() %>'/>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage() %>'/>
	<input type='hidden' name='find' value='<%=vo.getFind() %>'/>
</form>
</body>
<script>viewInit();</script>
</html>